﻿<UserControl x:Class="SupremacyEditor.RacesModule.RaceDatabaseView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:SupremacyEditor">
  <ListView x:Name="RaceListView"
            DisplayMemberPath="Header"
            ItemsSource="{Binding}"
            SelectionChanged="RaceListView_SelectionChanged"
            KeyDown="RaceListView_KeyDown"
            MouseDoubleClick="RaceListView_MouseDoubleClick">
    <ListView.InputBindings>
      <KeyBinding Command="{x:Static local:EditorCommands.DeleteItem}"
                  Key="Delete" />
    </ListView.InputBindings>
  </ListView>
</UserControl>
